var infoWindow = new google.maps.InfoWindow();
var markerBounds = new google.maps.LatLngBounds();
var markerArray = [];
var map;

function makeMarker(options){
	var pushPin = new google.maps.Marker({map:map});
	pushPin.setOptions(options);
	google.maps.event.addListener(pushPin, 'click', function(){
	  infoWindow.setOptions(options);
	  infoWindow.open(map, pushPin);
	});
	markerArray.push(pushPin);
	return pushPin;
}

google.maps.event.addListener(map, 'click', function(){
	infoWindow.close();
 });

 google.maps.event.addListenerOnce(map, 'idle', function(){
	openMarker(0);
 });

 function openMarker(i){
	google.maps.event.trigger(markerArray[i],'click');
};


